import http from '@/utils/http';

export default {
  namespaced: true,
  state: {
    list: [],
  },
  mutations: {
    getHomeList(state, data) {
      const s = state;
      s.list = data;
    },
  },
  actions: {
    // 获取全部简历
    async setlist({ commit }, str) {
      const result = await http.get(`/v1/data/app?${str}`);
      if (!result) {
        return;
      }
      commit('getHomeList', result.data);
    },
  },
};
